import { post } from './index.js'
import { get } from './index.js'

// 得到订单中数据表
export const GetOrderData = (body) => {
  return get('/getOrderData', body).then(res => res.data)
}

// 得到订单中数据表名
export const GetOrderAnnotations = (body) => {
  return get('/getOrderAnnotations', body).then(res => res.data)
}

// 删除订单的数据
export const DeleteOrder = (body) => {
  return post('/deleteOrder', body).then(res => res.data)
}

// 查找订单的数据
export const SearchOrder = (body) => {
  return post('/searchOrder', body).then(res => res.data)
}


// 获取订单的数据通过order_id
export const GetOrderUseOrderId = (body) => {
  return post('/getOrderUseOrderId', body).then(res => res.data)
}


// 查询具体商品通过order_id
export const GetOrderFromOrderId = (body) => {
  return post('/getOrderFromOrderId', body).then(res => res.data)
}


// 查询统计已完成的表
export const ShowCountList = (body) => {
  return get('/showCountList', body).then(res => res.data)
}


// 查找商品的名字，作为统计表
export const SerachShoppingCount = (body) => {
  return post('/serachShoppingCount', body).then(res => res.data)
}
